package com.cc.mapper;

import com.cc.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    //获取全部书籍  作者/书籍名称
    public List<Book> getList(@Param("bookName") String bookName,@Param("author") String author);
    //获取书籍详情
    Book getBookInfo(@Param("bookId") Integer bookId);
    //新增
    int addBook(Book book);
    //修改
    int updateBook(Book book);
    //删除
    int deleteBook(@Param("bookId") Integer bookId);
}
